package com.example.kehoobackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.kehoobackend.domain.Collection;

import java.util.List;

public interface CollectionService extends IService<Collection> {
    List<Collection> allCollection(int user_id);

    Integer countUserCollection(int user_id);

    boolean addCollection(int user_id, int answer_id);

    boolean deleteCollection(int user_id,int answer_id);

    //某用户是否收藏某回答
    boolean isCollected(Integer answer_id,Integer user_id);
}
